<!-- 整改方案详情 -->
<template>
  <div class="lanjian-content pdd">
    <div class="search-box" style="height: 40px">
      <div style="display: flex;flex-direction: row">
        <a-button slot="tabBarExtraContent" type="primary" style="margin-right: 10px" title="下载列表" @click="saveExcelv2">
          <i class='icon iconfont'>&#xe674;</i>
        </a-button>
        <a-form-model
          ref="ruleForm"
          :labelCol="labelCol"
          :wrapperCol="wrapperCol"
          :rules="rules"
          :model="ruleForm"
        >
          <a-form-model-item label="" >
            <a-input type="file" accept=".xls,.xlsx" style="display: none"  ref="selectFile" @change="importExcel" οnblur="this.value=''"></a-input>
            <a-button title="上传列表" @click="upexcel" type="primary" >
              <span class='icon iconfont'>&#xe677;</span>
            </a-button>
          </a-form-model-item>
          <a-form-model-item label="" >

          </a-form-model-item>
        </a-form-model>
        <a-tooltip style="display: flex;align-items: center;justify-items: left">
          <template slot="title">
            仅支持上传xls、xlsx,文件大小不超过200M。
          </template>
          <a-icon type="question-circle" style="margin-left: 15px;color: orange;font-size: 20px" />
        </a-tooltip>
      </div>
      <div class="input-box" style="align-items: center">
        <a-button type="primary" @click="save" class="mr8" v-show="false">
          保存
        </a-button>
        <a-button type="primary" @click="save" class="mr8" v-show="false">
          暂存
        </a-button>
        <a-button type="primary" class="mr8" v-show="false">
          刷新
        </a-button>
      </div>
    </div>

    <a-table
        class="table-box"
        bordered
        :columns="columns"
        :data-source="dataSource"
        :pagination="pagination"
        @change="tablePaginationChange"
        :scroll="{x: '100%', y: 'calc( 100vh - 405px )'}"
        rowKey="id"
      >
      <span
        slot="action"
        slot-scope="record"
        class="actionIcons">
        <span @click="preview(record)">
           <i class='icon iconfont' title='查看'>&#xe67b;</i>
        </span>
<!--            	<span @click="edit(record)" v-show="(!((record.zgfa_jdjcs_yj==='1')&&(record.zgfa_pzz_yj==='1')))||(!((record.zgfa_jdjcs_yj==='1')&&(record.zgfa_pzz_yj===''||record.zgfa_pzz_yj==='0')))||(!((record.zgfa_jdjcs_yj===''||record.zgfa_jdjcs_yj==='0')&&(record.zgfa_pzz_yj==='1')))">-->
<!--                            <i class='icon iconfont' title='编辑'>&#xe676;</i>-->
<!--              </span>-->
           	<span @click="edit(record)" v-show="((record.zgfa_jdjcs_yj==='2')||(record.zgfa_pzz_yj==='2'))||((record.zgfa_jdjcs_yj==='')&&(record.zgfa_pzz_yj===''))||((record.zgfa_jdjcs_yj==='0')&&(record.zgfa_pzz_yj==='0'))||((record.zgfa_jdjcs_yj==='3')&&(record.zgfa_pzz_yj==='3'))">
                            <i class='icon iconfont' title='编辑'>&#xe676;</i>
              </span>
      </span>
      </a-table>
    <a-modal
      centered
      title="整改方案"
      v-model:visible="mvisivle"
      :width="1000"
    >
      <div class="lanjian-content">
        <a-form-model
          class="formbox"
          ref="ruleForm2"
          :model="ruleForm"
          :rules="rules"
          :label-col="labelCol"
          :wrapper-col="wrapperCol"
        >
          <a-tabs v-model="activeKey" style="width: 100%" type='editable-card' border="false" hide-add
                  foldbtn="false">
            <a-tab-pane key="1" tab="待整改问题" :closable="false">
              <table class="detailsBox">
                <tr class="detailstag">
                  <td class="title">
                    问题分类
                  </td>
                  <td class="content">
                    {{ ruleForm.pfl }}
                  </td>
                </tr>
                <tr class="detailstag">
                  <td class="title">
                    问题方面
                  </td>
                  <td class="content">
                    {{ ruleForm.concreteProblems }}
                  </td>
                </tr>
                <tr class="detailstag">
                  <td class="title">
                    具体问题
                  </td>
                  <td class="content">
                    {{ ruleForm.ProblemClassification }}
                  </td>
                </tr>
                <tr class="detailstag">
                  <td class="title">
                    整改建议
                  </td>
                  <td class="content">
                    {{ ruleForm.remake }}
                  </td>
                </tr>
                <tr class="detailstag" v-show="false">
                  <td class="title">
                    整改措施
                  </td>
                  <td class="content">
                    {{ ruleForm.zgfa_measure }}
                  </td>
                </tr>
              </table>
            </a-tab-pane>
            <a-tab-pane key="2" tab="整改措施" :closable="false">

            </a-tab-pane>
            <a-tab-pane key="3" tab="评估意见" :closable="false">
              <a-form-model-item label="派驻组评估意见" class="formtabMax" name="zgfa_pzz_yj">
                <a-input v-model.trim="ruleForm.pzzyj" disabled="false" style="color:#000000" />
              </a-form-model-item>
              <a-form-model-item label="评估说明" name="zgfa_pzz_infos" class="formtabMax">
                <a-textarea v-model.trim="ruleForm.zgfa_pzz_infos" disabled="false" style="color:#000000" />
              </a-form-model-item>
              <a-form-model-item label="监督检查室评估意见" name="zgfa_jdjcs_yj" class="formtabMax">
                <a-input v-model.trim="ruleForm.jdjcsyj" disabled="false" style="color:#000000" />
              </a-form-model-item>
              <a-form-model-item label="评估说明" name="zgfa_jdjcs_infos" class="formtabMax">
                <a-textarea v-model.trim="ruleForm.zgfa_jdjcs_infos" disabled="false" style="color:#000000" />
              </a-form-model-item>
            </a-tab-pane>
          </a-tabs>
          <template v-if="activeKey==='2'">
            <a-form-model-item label="具体措施" name="pfl" class="formtabMax mt" prop="zgfa_measure">
              <a-textarea :rows="5" v-model.trim="ruleForm.zgfa_measure" :disabled="disable" style="color:#000000" :maxLength=500 />
            </a-form-model-item>
            <a-form-model-item label="责任部门" name="zgfa_department" class="formtabMax" prop='zgfa_department'>
              <a-input v-model.trim="ruleForm.zgfa_department" style="color:#000000" :disabled="disable"
                       maxLength=50 />
            </a-form-model-item>
            <a-form-model-item label="整改类型" name="zgfa_zgtype" prop='zgfa_zgtype' class="formtab">
              <a-select v-model="ruleForm.zgfa_zgtype" :disabled="disable" @change="setwcsx">
                <a-select-option value="1">立即整改</a-select-option>
                <a-select-option value="2">长期整改</a-select-option>
                <a-select-option value="3">无法整改</a-select-option>
              </a-select>
            </a-form-model-item>
            <a-form-model-item label="责任人" name="zgfa_persion" prop='zgfa_persion' class="formtab">
              <a-input v-model.trim="ruleForm.zgfa_persion" style="color:#000000" :disabled="disable"
                       :maxLength=50 />
            </a-form-model-item>
            <a-form-model-item label="责任领导" name="zgfa_leader" class="formtab" prop='zgfa_leader'>
              <a-input v-model.trim="ruleForm.zgfa_leader" style="color:#000000" :disabled="disable" maxLength=50 />
            </a-form-model-item>
            <a-form-model-item label="完成时限" name="zgfa_endtime" class="formtab" prop='zgfa_endtime' v-show="!disable2">
              <a-date-picker :disabled="disable2"
                             v-model.trim="ruleForm.zgfa_endtime"
                             type="date"
                             placeholder=" "
                             style="width: 100%"
              />
            </a-form-model-item>
          </template>
        </a-form-model>
      </div>
      <template slot="footer">
        <a-button type="primary" @click="save" v-if="disable!=true">保存</a-button>
        <a-button @click="close">取消</a-button>
      </template>
    </a-modal>
  </div>
</template>

<script>
import {
  getuploadFileInfo,
  getRectificationPlan,
  addRectificationPlan,
  deleteReport,
  deletePlan,
  getFeedback,
  editRectificationPlanSignle, streamToBuffer, getJLID
} from '@/utils/JsonTools'
import { shell } from '@electron/remote'
import {
  getcurDate,
  getLDType,
  getNowMilliSecond,
  getProblemType,
  getZGType,
  importsExcel,
  s2b,
  staff_import_template
} from "@/utils/common";
import fs from "fs";
import {getJLSelected, getWarings, updatFeedbackPlan} from "@/utils/fileUtils";
import * as XLSX from "xlsx";
import XLSXS from 'xlsx-js-style'
import { saveAs } from 'file-saver'
export default {
  name: 'adetails',
  data () {
    return {
      activeKey: '1',
      pfl: '',
      pzzyj: '',
      jdjcsyj: '',
      disable: false,
      disable2: false,
      open: false,
      mvisivle: false,
      // 表单标题内容宽度设置
      labelCol: { span: 24 },
      wrapperCol: { span: 24 },
      labelCol1: { span: 4 },
      wrapperCol1: { span: 20 },
      ruleForm: {},
      // 表单规则
      rules: {
        zgfa_measure: [{ required: true, message: '请输入整改措施', trigger: 'blur' }],
        zgfa_department: [{ required: true, message: '请输入责任部门', trigger: 'blur' }],
        zgfa_zgtype: [{ required: true, message: '请选择整改类型', trigger: 'blur' }],
        zgfa_leader: [{ required: true, message: '请输入责任领导', trigger: 'blur' }],
        zgfa_endtime: [{ required: true, message: '请输入完成时限', trigger: 'blur' }],
        zgfa_persion: [{ required: true, message: '请输入责任人', trigger: 'blur' }],
      },
      columns: [
        {
          title: '序号',
          width: 70,
          align: 'center',
          fixed: 'left',
          customRender: (text, record, index) => `${index + 1}`
        },
        {
          width: 120,
          title: '问题分类',
          dataIndex: 'Problems',
          key: 'Problems',
          align: 'center',
          ellipsis: true,
        customRender: (text, record, index) => {
      // eslint-disable-next-line no-empty,no-undef
      return getProblemType(record.Problems);
    },
        },
        {
          width: 120,
          title: '问题方面',
          dataIndex: 'concreteProblems',
          key: 'concreteProblems',
          align: 'center',
          ellipsis: true,
        },
        {
          width: 120,
          title: '具体问题',
          dataIndex: 'ProblemClassification',
          key: 'ProblemClassification',
          align: 'center',
          ellipsis: true,
        },
        {
          width: 120,
          title: '整改建议',
          dataIndex: 'remake',
          key: 'remake',
          align: 'center',
          ellipsis: true,
        },
        {
          title: '整改措施',
          dataIndex: 'zgfa_measure',
          key: 'zgfa_measure',
          width: 120,
          align: 'center',
          ellipsis: true
        },
        {
          title: '整改时限',
          dataIndex: 'zgfa_time',
          key: 'zgfa_time',
          width: 120,
          align: 'center',
          ellipsis: true,
          customRender: (text, record, index) => {
            // eslint-disable-next-line no-empty,no-undef
            return this.days;
          }
        },
        {
          title: '责任部门',
          dataIndex: 'zgfa_department',
          key: 'zgfa_department',
          width: 120,
          align: 'center',
          ellipsis: true
        },
        {
          title: '责任领导',
          dataIndex: 'zgfa_leader',
          key: 'zgfa_leader',
          width: 120,
          align: 'center',
          ellipsis: true
        },
        {
          title: '责任人',
          dataIndex: 'zgfa_persion',
          key: 'zgfa_persion',
          width: 100,
          align: 'center',
          ellipsis: true
        },
        {
          title: '整改类型',
          dataIndex: 'zgfa_zgtype',
          key: 'zgfa_zgtype',
          width: 120,
          align: 'center',
          ellipsis: true ,
          customRender: (text, record, index) => {
                  // eslint-disable-next-line no-empty,no-undef
                  return getZGType(record.zgfa_zgtype);
          }
        },
        {
          title: '完成时限',
          dataIndex: 'zgfa_endtime',
          key: 'zgfa_endtime',
          width: 150,
          align: 'center',
          ellipsis: false
        },
        {
          title: '派驻组评估情况',
          dataIndex: 'zgfa_pzz_yj',
          key: 'zgfa_pzz_yj',
          width: 180,
          align: 'center',
          ellipsis: true,
          customRender: (text, record, index) => {
            // eslint-disable-next-line no-empty,no-undef
            return getLDType(record.zgfa_pzz_yj);
          }
        },
        {
          title: '监督检查室评估情况',
          dataIndex: 'zgfa_jdjcs_yj',
          key: 'zgfa_jdjcs_yj',
          width: 200,
          align: 'center',
          ellipsis: true,
          customRender: (text, record, index) => {
            // eslint-disable-next-line no-empty,no-undef
            return getLDType(record.zgfa_jdjcs_yj);
          }
        },
        {
          title: '操作',
          key: 'operation',
          align: 'center',
          width: 150,
          fixed: 'right',
          scopedSlots: { customRender: 'action' }
        }
      ],
      dataSource: [],
      queryParam: {
        type: undefined,
        attr: []
      },
      // 分页参数
      pagination: {
        current: 1,
        // defaultCurrent: 1,
        total: 0, // 总数
        showSizeChanger: true,
        // 是否可以快速跳转至某页
        showQuickJumper: true,
        pageSizeOptions: ['10', '20', '40', '80', '100'],
        // showTotal: total => '共 ${total} 条', // 分页中显示总的数据
        // hideOnSinglePage: true, // 只有一页时是否隐藏分页器
        pageSize: 10 // 每页条数，所有页设置统一的条数
      },
      fileList: [],
      keys:"",
      days:"",
      bdays:"",
      fields:{
        id:'编号',
        problems:'问题分类',
        concreteProblems:'问题方面',
        ProblemClassification:'具体问题',
        zgfa_measure:'整改措施',
        zgfa_time:'整改时限',
        zgfa_zgtype:'整改类型',
        zgfa_department:'责任部门',
        zgfa_leader:'责任领导',
        zgfa_persion:'责任人',
        zgfa_endtime:'完成时限'
      },
      headers:[
       {
          header: '编号',
          key: 'id',
          width: 20
        },
        {
          header: '问题分类',
          key: 'problems',
          width: 50
        },
        {
          header: '问题方面',
          key: 'concreteProblems',
          width: 50
        },
        {
          header: '具体问题',
          key: 'ProblemClassification',
          width: 50
        },
        {
          header: '整改措施',
          key: 'zgfa_measure',
          width: 50
        },
        {
          header: '整改时限',
          key: 'zgfa_time',
          width: 50
        },
        {
          header: '整改类型',
          key: 'zgfa_zgtype',
          width: 50
        },
        {
          header: '责任部门',
          key: 'zgfa_department',
          width: 20
        },
        {
          header: '责任领导',
          key: 'zgfa_leader',
          width: 20
        },
        {
          header: '责任人',
          key: 'zgfa_leader',
          width: 20
        },
        {
          header: '完成时限',
          key: 'zgfa_endtime',
          width: 20,
          style: { numFmt: "@" }
        }
      ]
    }
  },
  mounted () {
    this.keys=getNowMilliSecond()
    this.reset()
    this.getwaring()
  },
  methods: {
    getNowMilliSecond,
    setwcsx(e){
      if(e==3){
        this.disable2=true
        this.rules.zgfa_endtime[0].required=false
      }else if(e==2){
        this.disable2=true
        this.rules.zgfa_endtime[0].required=false
      }else{
        this.disable2=false
        this.rules.zgfa_endtime[0].required=true
      }
    },
    close(e){
      this.reset()
      this.mvisivle=false
    },
    preview(record) {
      this.mvisivle=true
      this.ruleForm=record
      this.disable=true
      this.disable2=true
      this.ruleForm.pzzyj=getLDType(record.zgfa_pzz_yj)
      this.ruleForm.jdjcsyj=getLDType(record.zgfa_jdjcs_yj)
      this.ruleForm.pfl = getProblemType(record.Problems)
    },
    edit(record){
      this.mvisivle=true
      const rec=record
      this.ruleForm=rec
      this.disable=false
      this.disable2=false
      this.setwcsx(record.zgfa_zgtype)
      this.ruleForm.pzzyj=getLDType(record.zgfa_pzz_yj)
      this.ruleForm.jdjcsyj=getLDType(record.zgfa_jdjcs_yj)
      this.ruleForm.pfl = getProblemType(record.Problems)
    },
    delrecord(record){
      deletePlan(record).then(res => {
        this.$message.success('删除成功')
        this.reset()
      })
    },
    getFileSize(limit) {
      let size
      if (limit < 0.1 * 1024) { // 小于0.1KB，则转化成B
        size = limit.toFixed(2) + 'B'
      } else if (limit < 0.1 * 1024 * 1024) { // 小于0.1MB，则转化成KB
        size = (limit / 1024).toFixed(2) + 'KB'
      } else if (limit < 0.1 * 1024 * 1024 * 1024) { // 小于0.1GB，则转化成MB
        size = (limit / (1024 * 1024)).toFixed(2) + 'MB'
      } else { // 其他转化成GB
        size = (limit / (1024 * 1024 * 1024)).toFixed(2) + 'GB'
      }

      let sizeStr = size + '' // 转成字符串
      let index = sizeStr.indexOf('.') // 获取小数点处的索引
      let dou = sizeStr.substr(index + 1, 2) // 获取小数点后两位的值
      if (dou === '00') { // 判断后两位是否为00，如果是则删除00
        return sizeStr.substring(0, index) + sizeStr.substr(index + 3, 2)
      }
      return size
    },
    getFileSizeLocal(size) {
      return this.getFileSize(size)
    },
    tablePaginationChange (pagination) {
      // 重新设置当前页
      this.pagination.current = pagination.current
      this.pagination.pageSize = pagination.pageSize
    },
    // 上传验证
    beforeFileUpload (file) {
      if (file.name.substring(0, file.name.indexOf('.')).length > 200) {
        this.$message.error('上传文件名字不得超过200字')
        return false
      }
      let isLt2M = file.size / 1024 / 1024
      if (isLt2M > 200) {
        this.$message.error('只允许上传200M以下的文件')
        return false
      }
      let fileExt = file.name.slice(file.name.lastIndexOf('.') + 1)
      let fileTypeArr = ['xls', 'xlsx']
      if (fileTypeArr.indexOf(fileExt) === -1) {
        this.$message.error('非法的文件类型')
        return false
      }
      return true
    },
    customUpload (file) {
      // beforeFileUpload()返回为true，才会触发这个方法；
      this.handleUpload(file)
    },
    // 构造formData
    handleUpload (upfile) {

    },
    handleChange (FileInfo) {
      // this.fileList = []
      // this.ruleForm.fileList = []
      // // eslint-disable-next-line array-callback-return
      // FileInfo.fileList.map(m => {
      //   // eslint-disable-next-line eqeqeq
      //     if (m != null && m != undefined) {
      //     this.ruleForm.fileList.push(m.response)
      //     }
      // })
      // FileInfo.fileList = []
      // console.log(this.ruleForm.fileList)
    },
    // 上传
    async imagerAdd(formData) {

    },
    // 保存
    save () {
      this.$refs.ruleForm2.validate(valid => {
        // eslint-disable-next-line eqeqeq
        if (valid) {
          console.log("rrr--",this.ruleForm.zgfa_endtime)
          if(this.ruleForm.zgfa_endtime===null||this.ruleForm.zgfa_endtime===""||this.ruleForm.zgfa_endtime===undefined){
            this.ruleForm.zgfa_endtime=""
          }
          if(this.ruleForm.zgfa_zgtype=="2"||this.ruleForm.zgfa_zgtype=="3"){
            this.ruleForm.zgfa_endtime=""
          }
          this.ruleForm.zgfa_time=this.days
          this.ruleForm.plan_status=0
          this.ruleForm.version=getNowMilliSecond()
          editRectificationPlanSignle(this.ruleForm,1).then(res => {
            //alert(this.ruleForm.id)
            if (res === 0) {
              this.$message.error('保存失败')
              return
            }
            this.reset()
            this.$message.success('保存成功')
            this.mvisivle = false
          })
        }
      })
    },
    // 刷新
    reset () {
        getFeedback().then(res => {
          console.log("res--",res)
          res.sort((a, b) => {
            if(a.serial_num<b.serial_num){
              return -1
            }else{
              return 1
            }
          })
          this.dataSource = [...res];
        });
    },
    downtmp(path,name){
      let fileb = fs.createReadStream(path);
      let fsname = name;
      console.log('fsname-----' + fsname);
      streamToBuffer(fileb).then(res => {
        let data = res;
        let contents = new Uint8Array(data.length);
        for (let i = 0; i < data.length; i++) {
          contents[i] = data[i];
        }
        // eslint-disable-next-line no-undef
        let expname = fsname;
        saveAs.saveAs(new Blob([contents], { type: 'application/zip' }), expname);
      });
    },
    getwaring(){
      getWarings().then(res=>{
        console.log("ww--",res)
        if(res.length>0){
          let count = 0
          if(res[0].F_PLAN_TYPE_=="week"){
            count=7
          }
          if(res[0].F_PLAN_TYPE_=="month"){
            count=30
          }
          if(res[0].F_PLAN_TYPE_=="day"){
            count=1
          }
          this.days=res[0].F_PLAN_TIME_*count
          this.days=this.days+"天"
        }
      })
    },
    upexcel(e){
      console.log("ref--",this.$refs)
      this.$refs.selectFile.$el.click();
    },
    saveExcelv2(){
      getFeedback().then(res=> {
        for (var i = 0; i < res.length; i++) {
          res[i].problems = getProblemType(res[i].Problems)
          res[i].zgfa_zgtype = getZGType(res[i].zgfa_zgtype)
          res[i].zgfa_time = this.days
        }
        let  filename="整改方案"
        res.sort((a, b) => {
          if(a.serial_num<b.serial_num){
            return -1
          }else{
            return 1
          }
        })
        staff_import_template(filename,this.headers,res,7)

      })
    },
    saveExcel(){
      getFeedback().then(res=>{
        for(var i=0;i<res.length;i++){
          res[i].problems=getProblemType(res[i].Problems)
          res[i].zgfa_time=this.days
        }
        res.forEach(item => {
          for (let i in item) {
            if (this.fields.hasOwnProperty(i)) {
              item[this.fields[i]] = item[i];
            }
            delete item[i]; //删除原先的对象属性
          }
        })
        let  filename="整改方案_"+getcurDate()
        let sheetName = "整改方案" //excel的文件名称
        let wb = XLSX.utils.book_new()  //工作簿对象包含一SheetNames数组，以及一个表对象映射表名称到表对象。XLSX.utils.book_new实用函数创建一个新的工作簿对象。
        let ws = XLSX.utils.json_to_sheet(res, { header: Object.values(this.fields) }) //将JS对象数组转换为工作表。
        ws["!cols"] = [
          {
            wpx: 150
          },
          {
            wpx: 200,
          },
          {
            wpx: 300,
          },
          {
            wpx: 350,
          },
          {
            wpx: 350,
          },
          {
            wpx: 200,
          },
          {
            wpx: 100,
          },
          {
            wpx: 150,
          },
          {
            wpx: 200,
          },
          {
            wpx: 200,
          },
          {
            wpx: 100,
          }
        ];
        wb.SheetNames.push(sheetName)
        wb.Sheets[sheetName] = ws
        const defaultCellStyle = { font: { name: "Verdana", sz: 13, color: "FF00FF88" }, fill: { fgColor: { rgb: "FAFF00" } } };//设置表格的样式
        const contsntStyle = { alignment : { wrapText: true,vertical: 'middle'} };//设置表格的样式
        let validation = {
          type: "list",
          prompt: "请选择整改类型",
          formulae: ['"立即整改,长期整改,无法整改"'],
        };
        let wopts = { bookType: 'xlsx', bookSST: false, type: 'binary', cellStyles: true, defaultCellStyle: defaultCellStyle, showGridLines: true }  //写入的样式
        console.log("ddd---",wb)
        //设置单元格格式
        for (const key in wb.Sheets){
            for (const k in wb.Sheets[key]){
              console.log("kky---",k)
              // 非!开头的属性都是单元格
              if (!k.startsWith('!')) {
                const td = wb.Sheets[key][k]
                td.s=contsntStyle
                if((k+"")==='K1'){
                  td.numFmt= 'yyyy-mm-dd'
                }
                if((k+"")==='G1'){
                  td.s = validation
                }
              }
            }
        }
        let wbout = XLSXS.write(wb, wopts)
        let blob = new Blob([s2b(wbout)], { type: 'application/octet-stream' })
        saveAs.saveAs(blob, filename + '.xlsx')
      })
    },
    importExcel(e){
        importsExcel(e).then((datai) => {
          console.log("imp---",e)
          updatFeedbackPlan(datai).then(rs=>{
            this.$refs.selectFile.setValue("")
           this.reset()
           this.$message.success("导入成功")
         })
       });

    }
  }
}
</script>


<style lang="less" scoped>
.table-box{
  height: calc(100vh - 280px);
  overflow: hidden;
}
.mt {
  margin-top: 16px;
}

/deep/.formbox{
  padding: 12px 40px 0!important;
}
// 滚动条背景颜色
/*
.ant-table-body::-webkit-scrollbar,
.info::-webkit-scrollbar {
  height: 9px;
  width: 9px;
  background-color: #fcfcfc;
}

// 滚动条颜色
.ant-table-body::-webkit-scrollbar-thumb,
.info::-webkit-scrollbar-thumb {
  border-radius: 9px;
  background-color: #cccccc;
}
*/

</style>
